{% extends "base.html" %}

{% block body %}
<form action="" method="post">
    <fieldset id="kindle_fieldset">
        <legend>设置Google OAuth</legend>
        <strong class="error">警告：修改此项后所有使用oauth授权的账号都必须重新授权</strong>
        {% if fail %}
        <p><strong class="error">！</strong></p>
        {% elif success%}
        <p><strong class="error">保存成功，<a href="/auth">立即重新授权</a></strong></p>
        {% end %}
        <p>
            <label>OAuth Consumer Key:</label><br />
            <input type="text" name="consumer_key" size="50" value="{% if goa and goa.consumer_key %}{{ goa.consumer_key }}{% end %}" />
        </p>
        <p>
            <label>OAuth Consumer Secret:</label><br />
            <input type="text" name="consumer_secret" size="50" value="{% if goa and goa.consumer_secret %}{{ goa.consumer_secret }}{% end %}" />
        </p>
        <p>
            <input type="submit" class="btn" value="保存" />
            <a href="/">投递设置</a> - <a href="/auth">账户授权</a>
        </p>
    </fieldset>
</form>

{% end %}